package com.mantou.scucorse.core.repository;

import com.mantou.scucorse.core.entity.Cookie;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CookieRepository {
    int deleteByPrimaryKey(@Param("id") Integer id);

    int insert(@Param("cookie") Cookie cookie);

    int insertSelective(@Param("cookie") Cookie cookie);

    Cookie selectByPrimaryKey(@Param("id") Integer id);

    int updateByPrimaryKeySelective(@Param("cookie") Cookie cookie);

    int updateByPrimaryKey(@Param("cookie") Cookie cookie);

    int selectCount(@Param("cookie") Cookie cookie);

    List<Cookie> selectPage(@Param("cookie") Cookie cookie, @Param("pageable") Pageable pageable);
}